// 封装公共的请求api
const apiConfig = {
  // 开发环境
  dev: {
    errCode: "000000",
    workOrderApi: "http://192.168.100:9122",
    weixinApi: "http://songzx.ngrok2.xiaomiqiu.cn",
  },
  // 生产环境
  production: {
    errCode: "000000",
    workOrderApi: "http://adm.shengchan.info/workorder",
    weixinApi: "http://songzx.ngrok2.xiaomiqiu.cn",
  },
};

// 根据全局全局变量自动切换请求地址前缀
export default apiConfig[process.env.VUE_APP_ENV];
